#ifndef TERMINALCONTROL_H
#define TERMINALCONTROL_H

#include <iostream>
using namespace std;

#include "SerialPort.h"
#include "Queue.h"
#include "AirConditionTerminal_YL.h"
#include "InfoContainer.h"
#include "DevCreater.h"

class CTerminalControl
{
public:
    CTerminalControl();
    ~CTerminalControl();
    bool Init();
    bool Run(int & CollectFlag, int & TerminalFlag, pthread_mutex_t & ComLock);
    void Cleanup();

private:
    void SendCmd();

private:
    CSerialPort * SerialPort;
    CQueue * Queue;
    CInfoContainer * InfoContainer;
    CDevCreater * DevCreater;

};

#endif // TERMINALCONTROL_H
